package com.cmrx.model.service.impl;

import com.cmrx.model.dao.LoginDao;
import com.cmrx.model.entity.User;
import com.cmrx.model.service.LoginService;
import com.cmrx.model.util.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.text.SimpleDateFormat;
import java.util.Date;

@Service
@Transactional
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginDao loginDao;

    public User loginUser(String userCard){
        return  loginDao.selectLoginUser(userCard);
    }
}
